<!-- Begin page content -->
<main role="main" class="container">
    <h1 class="mt-5 mb-4">修改用户 Update a User</h1>
    <form method="post" action="<?php echo BASE_URL; ?>/user/update/post">
        <input type="hidden" class="form-control" name="id" value="{{$userId}}">
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">姓名 <br>Name</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" name="name" placeholder="Name" value="{{$userName}}">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">电子邮件 <br>Email Address</label>
            <div class="col-sm-10">
                <input type="email" class="form-control" name="email" placeholder="Email Address" value="{{$userEmail}}">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">手机号码 <br>Mobile Number</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" name="mobile" placeholder="Mobile Number" value="{{$userMobile}}">
            </div>
        </div>
        
        <button type="submit" class="btn btn-success">修改 Update</button>
        <a class="btn btn-primary" href="<?php echo BASE_URL; ?>/users">返回 Back</a>
    </form>
</main>